import request from '@/utils/request'

export function queryPageHistory(data) {
  return request({
    url: '/history/findAllHistory',
    method: 'post',
    data,
  })
}

export function deleteHistory(data) {
  return request({
    url: '/history/deleteHistory?userName=' + data,
    method: 'get',
  })
}

export function addOneHistory(data) {
  return request({
    url: '/history/addOneHistory',
    method: 'post',
    data,
  })
}

export function updateHistory(data) {
  return request({
    url: '/history/updateHistory',
    method: 'post',
    data,
  })
}
